package main

import (
	"fmt"
	"strings"
)

func main() {
	str := "Make the plan. Execute the plan. Expect the plan to go off the rails. Throw away the plan."
	r1 := strings.NewReader(str)
	fmt.Printf("Size: %d, Len: %d\n", r1.Size(), r1.Len())
	buf := make([]byte, 14)
	n, _ := r1.Read(buf)  // 忽略错误
	fmt.Println(string(buf))  // 都读到这里来了
	fmt.Printf("Read: %d\n", n)
	fmt.Printf("Size: %d, Len: %d, Read: %d\n", r1.Size(), r1.Len(), r1.Size()-int64(r1.Len()))
}